package com.wwt.blog.service;

import com.wwt.blog.pojo.Article;
import com.wwt.blog.vo.ArticleVo;
import com.wwt.blog.vo.Result;
import com.wwt.blog.vo.param.ArticleParam;
import com.wwt.blog.vo.param.PageParams;

import java.util.List;

public interface ArticleService {
    //全部文章
    Result listArticles(PageParams pageParams);

    //最热文章
    List<ArticleVo> getHotArticles();
    //最新文章
    List<ArticleVo> getNewArticles(int limit);

    //文章归类
    Result getListArchives();

    //文章详情
    Result getArticleBodyById(Long articleId);
    //发布文章
    Result articlePublish(ArticleParam articleParam);

}
